package com.demoproject.demo;

import com.demoproject.demo.dj.pojo.entity.Animal;

import java.util.List;

public class Demo {
    public  void  countLegs(List<? extends Animal> animals){
        int leg=0;
        for (Animal animal : animals) {

        }
    }
}
